# Contributor: Jonas <3426-spameier@users.gitlab.alpinelinux.org>
# Maintainer: Jonas <3426-spameier@users.gitlab.alpinelinux.org>
pkgname=ldapdomaindump
pkgver=0.9.4
pkgrel=1
pkgdesc="Active Directory information dumper via LDAP"
url="https://github.com/dirkjanm/ldapdomaindump"
arch="noarch"
license="MIT"
depends="
	py3-dnspython
	py3-future
	py3-ldap3
	"
makedepends="
	py3-gpep517
	py3-setuptools
	py3-wheel
	"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/dirkjanm/ldapdomaindump/archive/refs/tags/v$pkgver.tar.gz"
options="!check" # no tests provided

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
0da9ab936e391d08829ae12ba893b7a2dd088e1fe37cbce612bd4772a35c3dbcae836711f80a3abffb1e5d786af30b093e45534acab84c7c0ae36064f6980407  ldapdomaindump-0.9.4.tar.gz
"
